POV-Ray : Newsgroups : povray.binaries.images : turfvase (1st image post) : Re: turfvase (1st image post) Server Time
15 Nov 2024 16:16:24 EST (-0500)
  Re: turfvase (1st image post)  
From: Tim Nikias v2 0
Date: 6 Jun 2003 12:02:27
Message: <3ee0bb13$1@news.povray.org>
Look at 6.1.4.6. in the docs. The Trace you've
looked at is part of the scripted Raytracer implemented
in POV-SDL.

-- 
Tim Nikias v2.0
Homepage: http://www.digitaltwilight.de/no_lights
Email: Tim### [at] gmxde

> Very nice.
>
> I guess I'm rather new at POV, because I can't figure out how the trace()
> macro can be used to 'arrange them on the surface'.  From the POV
> documentation:
>
> "This is the macro we call for each pixel we want to calculate. That is,
the
> starting point of the ray is our camera location and the direction is the
> direction of the ray starting from there and going through the "pixel" we
> are calculating. The macro returns the color of that pixel."
>
> From this I gather that the trace() macro returns a color.  How can a
color
> be used to arrange blades of grass on a surface?  I would assume that
you'd
> need a coordinate and direction or something along those lines, not a
> color...  but as I said, I'm rather new at this.  There's probably some
> documentation that I've overlooked that explains it but I can't seem to
find
> it.  Would you please be so kind as to explain it to me, or refer me to
the
> appropriate section of the documentation?  Thank you.
>
> Sun.
>
>
>
> "moj" <moj### [at] btinternetcom> wrote in message
> news:3ee08f50@news.povray.org...
> > Hi everyone
> >
> > I wasn't going to post this, but I just saw Norbert Kern's pipetree
> > image so it seemed appropriate to post another example of an adaptation
> > of one Gilles' excellent macros  (not sure how you post a link to
> > another thread but it's in povray.binaries.images).
> >
> > This uses the makeblade part of mgrass.inc to generate a "pallette" of
> > 50 blades, then uses the trace() function to arrange them on the surface
> > of a lathe-type object (actually a rotation from Moray)
> >
> > The colours for the grass are taken straight from the irtc winner a few
> > months ago:
> >
> >   http://www.irtc.org/ftp/pub/stills/2003-02-28/radiogrv.jpg
> >
> > I've been playing with povray for a couple of months now (when I should
> > have been revising for finals :-) and this is my favourite object I've
> > made. I'm just not sure what to do with it...
> >
> >
> > moj34
> >
> >
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
>
>
>
>
> --------------------------------------------------------------------------
--
> ----
>
>
>
>
>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.